package com.unipay.system.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.unipay.model.system.SysUser;
import com.unipay.model.vo.SysUserQueryVo;

import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author cmy
 * @since 2023-02-07
 */
public interface SysUserService extends IService<SysUser> {

    // 条件分页查询
    IPage<SysUser> selPage(Page<SysUser> pageParam, SysUserQueryVo sysUserQueryVo);

    int updateStatus(Long id, Integer status);

    // 根据username查询数据
    SysUser getInfoByUsername(String username);
    // 根据用户名称，获取用户信息：基本信息、菜单权限、按钮权限
    Map<String, Object> getUserInfo(String username);
}
